package com.wql.service.impl;

import com.aaa.entity.GDeposit;
import com.aaa.vo.Result;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.wql.service.GDepositService;
import com.wql.mapper.GDepositMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 咕噜咕噜
* @description 针对表【g_deposit(保存方式)】的数据库操作Service实现
* @createDate 2023-03-07 16:46:53
*/
@Service
public class GDepositServiceImpl extends ServiceImpl<GDepositMapper, GDeposit>
    implements GDepositService{

    @Autowired
    private GDepositMapper gDepositMapper;

    @Override
    public Result findAll() {
        QueryWrapper<GDeposit> wrapper = new QueryWrapper<>();
        wrapper.eq("status",0);
        List<GDeposit> gDeposits = gDepositMapper.selectList(wrapper);
        return new Result(2000,"成功",gDeposits);
    }

}




